import request from '@/utils/request'

// 查询设备管理列表
export function listDeviceManage(query) {
  return request({
    url: '/manage/deviceManage/list',
    method: 'get',
    params: query
  })
}

// 查询设备管理详细
export function getDeviceManage(deviceId) {
  return request({
    url: '/manage/deviceManage/' + deviceId,
    method: 'get'
  })
}

// 新增设备管理
export function addDeviceManage(data) {
  return request({
    url: '/manage/deviceManage',
    method: 'post',
    data: data
  })
}

// 修改设备管理
export function updateDeviceManage(data) {
  return request({
    url: '/manage/deviceManage',
    method: 'put',
    data: data
  })
}

// 删除设备管理
export function delDeviceManage(deviceId) {
  return request({
    url: '/manage/deviceManage/' + deviceId,
    method: 'delete'
  })
}

// 获取设备硬盘信息
export function getDeviceHddInfo(deviceCode) {
  return request({
    url: '/manage/deviceManage/getDeviceHddInfo/' + deviceCode,
    method: 'get'
  })
}

// 保存设备硬盘信息
export function saveDeviceHddInfo(data) {
  return request({
    url: '/manage/deviceManage/saveDeviceHddInfo',
    method: 'post',
    data: data
  })
}

// 获取设备网卡信息
export function getDeviceNetworkCardInfo(deviceCode) {
  return request({
    url: '/manage/deviceManage/getDeviceNetworkCardInfo/' + deviceCode,
    method: 'get'
  })
}

// 保存设备网卡信息
export function saveDeviceNetworkCardInfo(data) {
  return request({
    url: '/manage/deviceManage/saveDeviceNetworkCardInfo',
    method: 'post',
    data: data
  })
}
